home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3119 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  989 b 

  1. Path: news.microsoft.com!news
  2. From: a-cnadc@microsoft.com (Dann Corbit)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Function to retrieve full path name of running process?
  5. Date: 26 Jan 1996 00:44:47 GMT
  6. Organization: Microsoft Corporation
  7. Message-ID: <4e985v$c4c@news.microsoft.com>
  8. References: <4e330s$o25@news.fmso.navy.mil>
  9. NNTP-Posting-Host: 157.57.171.202
  10. Mime-Version: 1.0
  11. X-Newsreader: WinVN 0.93.14
  12.  
  13. In article <4e330s$o25@news.fmso.navy.mil>, Carol_Walker@fmso.navy.mil says...
  14. >
  15. >Is there a function that a process running on a Unix system can call
  16. >to determine the full path name of its object file?  argv[0] doesn't 
  17. >contain the full path, only the command used to execute it.
  18. No, there is not.  The FAQ explains why.  There may be some function
  19. available to your particular system to resolve the problem, but there
  20. is no such solution in ANSI C.
  21. -- 
  22. The opinions expressed in this message are my own personal views 
  23. and do not reflect the official views of Microsoft Corporation.
  24.  
  25.